home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Graphics / Utilities / POVRAY / POVRAY II / POV-Ray / POV-Ray.rsrc / TEXT_423_ material_map.txt < prev    next >
Text File  |  1994-02-10  |  589b  |  15 lines

  1. // texture attribute
  2. // create a texture that maps different textures onto different color indexes
  3. // image maps into X-Y plane from <0,0,0> to <1,1,0>
  4. material_map
  5. {
  6.   gif "test.gif" // the file to read (iff/gif/tga/dump/pot)
  7.   map_type 0 // 0=planar, 1=spherical, 2=cylindrical, 5=torus
  8.   interpolate 2 // 0=none, 1=linear, 2=bilinear, 4=normalized distance
  9.   // [once]
  10.   texture { pigment {wood} }  // texture for color index # 0
  11.   texture { pigment {granite} }  // texture for color index # 1
  12.   texture { pigment {agate} }  // texture for color index # 2
  13.   // etc‚Ķ
  14. } // material_map
  15.